const mongoose = require('mongoose');

//创建文档结构对象
const ComputerSchema = new mongoose.Schema({
    brand: String,
    price: Number,
    color: String
});

//创建文档模型对象
const ComputerModel = mongoose.model('computers', ComputerSchema);

//对外暴露 模型对象
module.exports = ComputerModel;